﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSConsoleTest
{
    class TestNamedParam : BaseConsoleTest
    {
        public void printDescription()
        {
            Console.WriteLine("--- Named parameters ---");
        }

        public void doTest()
        {
            int arg1 = 3;
            int arg2 = 5;
            Console.WriteLine("Arg1 = {0} Arg2 = {1}", arg1, arg2);
            logArgs(aArg2: arg2, aArg1: arg1);
        }

        private void logArgs(int aArg1, int aArg2)
        {
            Console.WriteLine("logArgs method : Arg1 = {0} Arg2 = {1}", aArg1, aArg2);
        }
    }
}
